home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
UTIL
/
FILEUTIL
/
WHEREIS
/
readme
< prev
next >
Wrap
Text File
|
1993-08-25
|
5KB
|
100 lines
25 August 1993.
Archimedes whereis 1.20 (C)1993 Kai Schlichting (kai@phantom.com)
Usage: whereis [-vfh?] <name>|<- -name>
Displays all matches for <name> in the order of execution when given
as *command in shell:
1) CLI *commands that match <name> exactly ,including the adjacent module name.
2) Alias$<name> definitions that match <name> exactly are returned.
3) filenames in the Run$Path which's leafname matches <name> exactly
<name> can also be <name*>, here, then all leafnames which match *name*
are returned.
If <name> begins with a '-' a '-' must be the argument before
<name> (e.g. 'whereis - -v' to search for file '-v').
If no name is given, the -v switch will report the number of
*commands/files alone. (-f switch is valid,then)
The case of -v -f or -h does not matter.
-v switch: be verbose when searching and report number of *commands and files.
-f switch: search File$Path,too,in addition to Run$Path.
-h or -? switch: Display this help screen.
This is whereis/which for the Arc, a unix-like whereis with added 'which'
funcionality ,and it's designed to reside in your library (which most
harddisk,but few floppy users have).
What it will do: search thru all entries in your Run$Path system variable,
and turn up the matching files/directories within the path.
(these matches apply to the leafname,only!
e.g. ($.prog.lib.c.test : leaf is test)
it will search recursively into an expression such like
C:,Lib: in the Run$path.
Since version 1.20, it will also show aliases of the
Alias$<command> type,as well as CLI *commands residing in any
module on the system, and will show the name of the module,too.
If the -f switch is given,it will search through the File$Path,
albeit these files would not be executed when given as
commands.
If -v is given but no <name> ,the directories are counted
through for the number of modules/files/dirs, as normally
with -v.
File starting with a '-' must be preceded with a '-' prior the
name,f.ex. : *whereis - -emacs will search for '-emacs'.
Flexible argument/switch handling has been added: switches
can be given all at once : whereis -fv <name> or separated:
whereis -f <name> -v . A switch given twice does not produce
an error.
Purpose: I always execute commands on commandline,but tend to forget where
they reside. This program finds where. It also gives
The -v (verbose) switch will display the individual directories of Run$Path
while searching. Note the -v option can be given AFTER the filename,too.
The source is provided, for recompiling you'll need unixlib 3.6c (by Huw
Rogers) , as well the patch for strstr(),see file 'UnixLfix' .
This program is distributed under the GNU public license,read: the
NO WARRANTIES terms do apply.
Limitation: the source and the program might not be distributed bundled
with commercial software,which I define as software distributed under
conditions that don't include the GNU public license.
Limitation 2: contrary to the GNU public license,deriving sources of this
program,or it's binaries or binaries of deriving sources must NOT be sold for
commercial gain. (this to prevent certain 'software houses' who sell
ready-to-run Emacs/GCC/other GNU wareZ binaries for muchos $$$$ ,
from doing so with this program).
-----------------
*NEW NEW NEW NEW*
-----------------
This specifically means (version 1.20 and up):
a PD 'vendor' must not charge more than 80 US cents per 800k disk,!INCLUDING
MEDIA ! that contains this program. (I pay 40c for a 800k brand disk here)
If you can't break even with this: too bad,you rip of the users,and you better
trash this program NOW!!! This is especially true for the
German Acorn Distributor GMA , (shall I mention Jona Gebauer handing out
|>aV1DP1ll1|\|G-WaReZ a while ago in total ignorance/unawareness of what she was
handing out ?).
-----------------
I can be contacted (at time of writing):
kai@phantom.com (Kai Schlichting)
acorn@info2.rus.uni-stuttgart.de (Acorn ftp admin, ftp to this server and get
(finger this account for latest info!) things here FAST and FIRST !!!)
j08i@alf.zfn.uni-bremen.de (running out,last reserve)
[sarcastic mode on]
Snail mail users need not apply.
[sarcastic mode off]
Music heard while developing: DC 101.1 ,the greatest station in D.C.
ZZ Top : high and low
AC/DC : Money Talks
Aerosmith : Eat the rich
Front 242 : ugh, just kidding ,that's virus writer music (:-)
Credits: A Oliver at Acorn UK for his bugreports and acting cool.
-EOF-